package com.soft.line.mapper;

import com.soft.line.entity.ButtonInfo;
import com.soft.line.entity.CodeDetail;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface ButtonInfoMapper {

    List<ButtonInfo> selectAll();

    List<ButtonInfo> selectButtonsByMenuId(Integer menuId);

    ButtonInfo selectByButtonId(String buttonId);

    List<ButtonInfo> selectButtonsByRoleIdAndMenuId(@Param("roleId") Integer roleId,@Param("menuId") Integer menuId);
}